package com.rabbit.eap.system.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.rabbit.eap.framework.convert.Covert;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * @projectName eap
 * @packageName com.rabbit.eap.system.dto
 * @className SysUserDeptDTO
 * @author： rabbit
 * @version： 1.0
 * @since： 2020/06/06 23:34:04
 * <p>Description:
 * SysUserDeptDTO对象
 * </p>

 */
@Data
@Accessors(chain = true)
@ApiModel(value = "SysUserDeptDTO对象")
public class SysUserDeptDTO extends Covert {
    private static final long serialVersionUID = 1L;
    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空")
    @ApiModelProperty("用户id")
    @TableField("user_id")
    private Long userId;

    /**
     * 部门id
     */
    @NotNull(message = "部门id不能为空")
    @ApiModelProperty("部门id")
    @TableField("dept_id")
    private Long deptId;

    /**
     * 岗位id
     */
    @ApiModelProperty("岗位id")
    @TableField("post_id")
    private Long postId;

}